﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace RazorPageSample.RazorClassLib.Components
{
    public class DefaultViewComponent
        : ViewComponent
    {
        public async Task<IViewComponentResult> InvokeAsync()
        {
            return View<string>(await Task.FromResult("This is the default view component."));
        }
    }
}
